<?php
/**
 * 活动
 *
 *
 *
 *
 * @copyright  Copyright (c) 中国追溯
 * @since      File available since Release v1.1
 */
defined('InShopNC') or exit('Access Invalid!');
class order_kanjiaModel extends Model {

    public function getKanjiaOrder($condition,$page=''){
        $field='*,order_kanjia.kanjia_price as kanjia_price';
        $data= Model()->table("order_kanjia,p_kanjia_goods")->on("order_kanjia.goods_id=p_kanjia_goods.goods_id")->where($condition)->field($field)->find();
        $data['kanjia_price']=json_decode($data['kanjia_price'],true);
        return $data;
    }
    
    /**
	 *GET操作
	 * @author Harris
	 ***/
	public function getList($condition, $page=null, $order='kanjia_id desc', $field='*', $limit=0){
		return $this->table('order_kanjia')->field($field)->where($condition)->limit($limit)->page($page)->order($order)->select();
	}	
	
	
	
}
